<!-- 首页 -->
<template>
  <div>
    <el-card
      class="box-card"
      shadow="hover"
      @click.native="
        $router.push(
          { path: '/admin/adminPerson' },
          (onComplete) => {},
          (onAbort) => {}
        )
      "
    >
      <i class="el-icon-user first"></i>
      <p class="title">
        系统用户
        <span class="msg">对系统中的用户(普通用户、商家、管理员)进行管理</span>
      </p>
    </el-card>
    <el-card
      class="box-card"
      shadow="hover"
      @click.native="
        $router.push(
          { path: '/admin/businessFirm' },
          (onComplete) => {},
          (onAbort) => {}
        )
      "
    >
      <i class="el-icon-goods second"></i>
      <p class="title">
        商家入驻审批
        <span class="msg">对商家入驻申情进行审批(允许/拒绝)</span>
      </p>
    </el-card>
    <el-card
      class="box-card"
      shadow="hover"
      @click.native="
        $router.push(
          { path: '/admin/adminPosts' },
          (onComplete) => {},
          (onAbort) => {}
        )
      "
    >
      <i class="el-icon-document thrid"></i>
      <p class="title">
        论坛帖子
        <span class="msg">对论坛系统中帖子、板块进行管理</span>
      </p>
    </el-card>
    <el-card
      class="box-card"
      shadow="hover"
      @click.native="
        $router.push(
          { path: '/admin/adminJob' },
          (onComplete) => {},
          (onAbort) => {}
        )
      "
    >
      <i class="el-icon-setting fourth"></i>
      <p class="title">
        职位
        <span class="msg">对商家发布的职位进行管理</span>
      </p>
    </el-card>
    <Echarts></Echarts>
  </div>
</template>

<script>
import Echarts from '@/components/adminMain/Echarts.vue'
export default {
  components:{
    Echarts
  },
  data() {
    return {};
  },
};
</script>

<style lang='scss' scoped>
.box-card {
  height: 120px;
  width: 23%;
  margin: 0 10px;
  line-height: 120px;
  display: inline-block;
  padding: 0 15px;
  cursor: pointer;
  i {
    font-size: 3rem;
    vertical-align: middle;
    margin-top: -3px;
    display: inline-block;
    &.first {
      color: #1c9adc;
    }
    &.second {
      color: #ea9518;
    }
    &.thrid {
      color: #d3217b;
    }
    &.fourth {
      color: #42b983;
    }
  }
  .title {
    position: relative;
    display: inline-block;
    top: -15px;
    text-align: justify;
    left: 5px;
    width: 148px;
    line-height: 15px;
  }
  .msg {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 18px;
    font-size: 12px;
    color: #cacdd1;
  }
  ::v-deep .el-card__body {
    padding: 0;
  }
}
</style>
